<?php
include_once('page_global.php');
if($conf->Get_value('enable_user')!='checked')
bn_redirect('../error.php');
bn_include_lib('bn_jquery');
$theme->add_block('body');
//var_dump($lang);
$cmd=$_POST['cmd'];
if(isset($cmd))
{
  $user=new bn_user();
  if($user->forget_password($_POST['mail'])==1) 
  die('send email success');
  else
  die('email is not valid'); 
}
$theme->add_script(jquery_submit_show('#submit','fpass','#mail_div'));
?>
<div id="mail_div">
<label><?php echo $lang[0] ?></label>
<input type="text" size="40" autocomplete="on" name="mail" id="mail" class="input-text"/>
<input type="submit" name="submit" id="submit" value="<?php echo $lang[1] ?>" class="button"/>
</div>
<?php
$theme->render();
?>